﻿/**************************
 * Author: Hoangvx6b
 * Date: 02/04/2013
 * Module: Back up
 * Project: OFB
 **************************/

using OFB.BLL.ViewModel.Backup;
using OFB.DAL;
using OFB.Domain;

namespace OFB.BLL.Context
{
    public class BackupContext : CommonContext
    {
        public DataQueryDAL<BackupYear> BuCreate;
        public DataQueryDAL<Course> Course;
        public DataQueryDAL<BackUpTable> BuLoad;
        public DataQueryDAL<Subject> Subject;
        public DataQueryDAL<BackupTrainer> BuTrainer;
        public DataQueryDAL<BackupTopic> BuTopic;
        public DataQueryDAL<BackupView> BuView;

        public BackupContext()
        {
            Course = new DataQueryDAL<Course>(connectionStringName);
            BuCreate = new DataQueryDAL<BackupYear>(connectionStringName);
            BuLoad = new DataQueryDAL<BackUpTable>(connectionStringName);
            Subject = new DataQueryDAL<Subject>(connectionStringName);
            BuTrainer = new DataQueryDAL<BackupTrainer>(connectionStringName);
            BuTopic = new DataQueryDAL<BackupTopic>(connectionStringName);
            BuView = new DataQueryDAL<BackupView>(connectionStringName);
        }
    }
}
